/**
 * Created by Freeman on 2016/7/14.
 */
import {SEARCH} from '../types'
const state = {
    items: [
        {
            id: 2,
            name: '示例介绍',
            img: 'dist/2.png'
        },
        {
            id: 3,
            name: 'webpack',
            img: 'dist/3.jpg'
        }
    ],
    search: '',
}

const mutations = {
    [SEARCH](state,action){
        state.search = action
    }
}

export default  {
    state,
    mutations
}